#ifndef __SYSTIME_H__
#define __SYSTIME_H__
#include <time.h>
#include <stdint.h>
#define SYS_GetTicks() \
({\
    struct timespec now;\
    clock_gettime(CLOCK_MONOTONIC_COARSE, &now);\
    uint64_t us = now.tv_sec * 1000000 + now.tv_nsec / 1000;\
    us;\
})
#endif